package com.crdeng.system.service.impl;

import com.crdeng.system.entity.Department;
import com.crdeng.system.mapper.DepartmentMapper;
import com.crdeng.system.mapper.UserMapper;
import com.crdeng.system.service.DepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.crdeng.system.vo.UserRoleVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *部门表  服务实现类
 * </p>
 *
 * @author crdeng
 * @since 2020-11-18
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {



    /**
     * 调用自定义sql语句
     * @return
     */
    @Override
    public List<Department> findDeptAndCount() {


        return this.baseMapper.findDeptAndCount();
    }
}
